package com.atguigu.gulimail.product.feign;


import com.atguigu.common.to.SkuReductionTo;
import com.atguigu.common.to.SpuBoundTo;
import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/*
*
* 写这个接口使用Feign接口调用coupon积分微服务
*
* */
@FeignClient("gulimail-coupon") //该注解的作用就是远程调用gulimail-coupon
public interface CouponFeignService {


    //作用就是把product传递过来的spuBouondTo对象进行保存到数据库
    @PostMapping("/coupon/spubounds/save")
    R saveSpuBounds(@RequestBody  SpuBoundTo spuBoundTo);

    @PostMapping("/coupon/skufullreduction/saveInfo")
    R saveSkuReduction(@RequestBody  SkuReductionTo skuReductionTo);
}
